﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("gradeService", function (httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/admin/grade/gets", params);
            },
            get: function(params) {
                return httpService.get("/admin/grade/get", params);
            },
            post: function (params) {
                return httpService.post("/admin/grade/post", params);
            },
            put: function (params) {
                return httpService.put("/admin/grade/put", params);
            },
            "delete": function(id) {
                return httpService.delete("/admin/grade/delete/" + id);
            }
        }
        return methods;
    });
});